luci-base: propagate the multiple flag for RichListValue
authorPaul Donald <[email protected]>
Sat, 13 Dec 2025 17:58:45 +0000 (18:58 +0100)
committerPaul Donald <[email protected]>
Sat, 13 Dec 2025 17:58:45 +0000 (18:58 +0100)
This allows disabling selection of multiple entries by removing all
checkboxes from the dropdown list.

Signed-off-by: Paul Donald <[email protected]>
modules/luci-base/htdocs/luci-static/resources/form.js

index c7308e2fbabc483e9ad4b9654dfa1bdba6dcfc04..f2f497a1fa0704ffb8b61b092493701558cb0464 100644 (file)
@@ -4094,6 +4094,7 @@ const CBIRichListValue = CBIListValue.extend(/** @lends LuCI.form.ListValue.prot
                        size: this.size,
                        sort: this.keylist,
                        widget: this.widget,
+                       multiple: this.multiple,
                        optional: this.optional,
                        orientation: this.orientation,
                        select_placeholder: this.select_placeholder || this.placeholder,